package com.forbet.demo.service.impl;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.forbet.demo.common.EnumCommon;
import com.forbet.demo.mapper.AsianBankerInfoMapper;
import com.forbet.demo.mapper.BigSmallInfoMapper;
import com.forbet.demo.mapper.EuropeBankerInfoMapper;
import com.forbet.demo.mapper.PredictAccuracyMapper;
import com.forbet.demo.po.AsianBankerInfoPO;
import com.forbet.demo.po.BigSmallInfo;
import com.forbet.demo.po.PlayInfoPO;
import com.forbet.demo.po.PredictAccuracyPO;
import com.forbet.demo.service.AsianBankerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Service
public class AsianAsianBankerInfoServiceImpl extends ServiceImpl<AsianBankerInfoMapper, AsianBankerInfoPO> implements AsianBankerInfoService {

    @Autowired
    private PredictAccuracyMapper predictAccuracyMapper;


    @Autowired
    private AsianBankerInfoMapper asianBankerInfoMapper;

    @Autowired
    private EuropeBankerInfoMapper europeBankerInfoMapper;

    @Autowired
    private BigSmallInfoMapper bigSmallInfoMapper;


    @Override
    public void batchInsertPreResult(PlayInfoPO playInfoPO) {
        PredictAccuracyPO predictAccuracyPO = new PredictAccuracyPO();
        predictAccuracyPO.setPlayInfoId(playInfoPO.getId());
        predictAccuracyPO.setCreateTime(new Date());
        String predictResultEurope = playInfoPO.getPredictResultEurope();
        String bigSmallResult = playInfoPO.getBigSmallResult();
        if ("看好大球".equals(bigSmallResult)) {
            LambdaQueryWrapper<BigSmallInfo> bigSmallInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
            bigSmallInfoLambdaQueryWrapper.eq(BigSmallInfo::getPlayInfoId, playInfoPO.getId());
            bigSmallInfoLambdaQueryWrapper.between(BigSmallInfo::getCreateTime, DateUtil.offsetMinute(playInfoPO.getPlayingTime(), -30), playInfoPO.getPlayingTime());
            bigSmallInfoLambdaQueryWrapper.orderByDesc(BigSmallInfo::getCreateTime);
            List<BigSmallInfo> bigSmallInfoList = bigSmallInfoMapper.selectList(bigSmallInfoLambdaQueryWrapper);
            if (bigSmallInfoList != null && bigSmallInfoList.size() > 0) {
                String handicapName = bigSmallInfoList.get(0).getHandicapName();
                handicapName = handicapName.replaceAll("↑", "").replaceAll("↓", "");
                if ("1.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 2) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("1.5/2".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 2) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 2) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2/2.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2.5/3".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3/3.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3.5/4".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4/4.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 5) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 5) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4.5/5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 5) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 5) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("5/5.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() >= 6) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                }
            }
        } else if ("看好小球".equals(bigSmallResult)) {
            LambdaQueryWrapper<BigSmallInfo> bigSmallInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
//            bigSmallInfoLambdaQueryWrapper.in(BigSmallInfo::getBankerName, "皇冠", "Bet365");
            bigSmallInfoLambdaQueryWrapper.eq(BigSmallInfo::getPlayInfoId, playInfoPO.getId());
            bigSmallInfoLambdaQueryWrapper.between(BigSmallInfo::getCreateTime, DateUtil.offsetMinute(playInfoPO.getPlayingTime(), -30), playInfoPO.getPlayingTime());
            bigSmallInfoLambdaQueryWrapper.orderByDesc(BigSmallInfo::getCreateTime);
            List<BigSmallInfo> bigSmallInfoList = bigSmallInfoMapper.selectList(bigSmallInfoLambdaQueryWrapper);
            if (bigSmallInfoList != null && bigSmallInfoList.size() > 0) {
                String handicapName = bigSmallInfoList.get(0).getHandicapName();
                handicapName = handicapName.replaceAll("↑", "").replaceAll("↓", "");
                if ("1.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 1) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("1.5/2".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 1) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 2) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2/2.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 2) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 2) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("2.5/3".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 2) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3/3.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("3.5/4".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 3) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4/4.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("4.5/5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 4) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 5) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                } else if ("5/5.5".equals(handicapName)) {
                    if (playInfoPO.getHomeScore() + playInfoPO.getVisitScore() <= 5) {
                        predictAccuracyPO.setBigSmallResultType("0");
                    } else {
                        predictAccuracyPO.setBigSmallResultType("1");
                    }
                }
            }
        }
        if ("看好主队独赢".equals(predictResultEurope)) {
            if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
                predictAccuracyPO.setEuropeResultType("0");
            } else {
                predictAccuracyPO.setEuropeResultType("1");
            }
        } else if ("看好主队胜平".equals(predictResultEurope)) {
            if (playInfoPO.getHomeScore() >= playInfoPO.getVisitScore()) {
                predictAccuracyPO.setEuropeResultType("0");
            } else {
                predictAccuracyPO.setEuropeResultType("1");
            }
        } else if ("看好客队独赢".equals(predictResultEurope)) {
            if (playInfoPO.getVisitScore() > playInfoPO.getHomeScore()) {
                predictAccuracyPO.setEuropeResultType("0");
            } else {
                predictAccuracyPO.setEuropeResultType("1");
            }
        } else if ("看好客队胜平".equals(predictResultEurope)) {
            if (playInfoPO.getVisitScore() >= playInfoPO.getHomeScore()) {
                predictAccuracyPO.setEuropeResultType("0");
            } else {
                predictAccuracyPO.setEuropeResultType("1");
            }
        }
        String predictResultAsian = playInfoPO.getPredictResultAsian();

        if ("看好主队亚盘".equals(predictResultAsian)) {
            LambdaQueryWrapper<AsianBankerInfoPO> asianBankerInfoPOLambdaQueryWrapper = new LambdaQueryWrapper<>();
//            asianBankerInfoPOLambdaQueryWrapper.in(AsianBankerInfoPO::getBankerName, "皇冠", "Bet365");
            asianBankerInfoPOLambdaQueryWrapper.eq(AsianBankerInfoPO::getPlayInfoId, playInfoPO.getId());
            asianBankerInfoPOLambdaQueryWrapper.between(AsianBankerInfoPO::getCreateTime, DateUtil.offsetMinute(playInfoPO.getPlayingTime(), -30), playInfoPO.getPlayingTime());
            asianBankerInfoPOLambdaQueryWrapper.orderByDesc(AsianBankerInfoPO::getCreateTime);
            List<AsianBankerInfoPO> asianBankerInfoPOS = asianBankerInfoMapper.selectList(asianBankerInfoPOLambdaQueryWrapper);
            if (asianBankerInfoPOS != null && asianBankerInfoPOS.size() > 0) {
                AsianBankerInfoPO asianBankerInfoPO = asianBankerInfoPOS.get(0);
                String handicapName = asianBankerInfoPO.getHandicapName();
//                                          乱七八糟的字先去掉
                handicapName = handicapName.replaceAll("升", "").replaceAll("降", "").replaceAll(" ", "");
                if (handicapName.contains("/")) {
//                            包含/说明是+0/0.5这种盘
                    String[] asianSplit = handicapName.split("/");
                    String abc = EnumCommon.asianMap.get(asianSplit[0]) + "/" + EnumCommon.asianMap.get(asianSplit[1]);
//                                        为什么这么写，因为受球的时候，/后面的字不写受，所以容易误判断为减，其实按前面的走，就是+球
//                                                区分为主队减球还是加球，客队减球还是加球
                    if ("-".equals(abc.substring(0, 1))) {
//                                            减球并且是减0.25及以上必须赢一个才算红单,还要看具体盘口
                        if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
//                                                -0/0.5
                            if ("平手".equals(asianSplit[0]) && "半球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("0");
                            } else if ("半球".equals(asianSplit[0]) && "一球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("0");
                            } else if ("一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("1");
                        }
                    } else {
//                                            加球
                        if (playInfoPO.getHomeScore() < playInfoPO.getVisitScore()) {
//                                                +0/0.5
                            if ("受平手".equals(asianSplit[0]) && "半球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受半球".equals(asianSplit[0]) && "一球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("0");
                        }
                    }
                } else {
//                                        不包含"/"盘,单独的亚盘
                    String abc = EnumCommon.asianMap.get(handicapName);
                    if (abc.contains("-")) {
                        if (playInfoPO.getHomeScore() >= playInfoPO.getVisitScore()) {
//                                                -0
                            if ("平手".equals(handicapName)) {
                                predictAccuracyPO.setAsianResultType("0");
                            } else if ("半球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("一球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 1) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("1");
                        }
                    } else {
                        if (playInfoPO.getHomeScore() < playInfoPO.getVisitScore()) {
//                                                +0
                            if ("受平手".equals(handicapName)) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受半球".equals(handicapName)) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受一球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("0");
                        }
                    }
                }
            }
        } else if ("看好客队亚盘".equals(predictResultAsian)) {
            LambdaQueryWrapper<AsianBankerInfoPO> asianBankerInfoPOLambdaQueryWrapper = new LambdaQueryWrapper<>();
//            asianBankerInfoPOLambdaQueryWrapper.in(AsianBankerInfoPO::getBankerName, "皇冠", "Bet365");
            asianBankerInfoPOLambdaQueryWrapper.eq(AsianBankerInfoPO::getPlayInfoId, playInfoPO.getId());
            asianBankerInfoPOLambdaQueryWrapper.between(AsianBankerInfoPO::getCreateTime, DateUtil.offsetMinute(playInfoPO.getPlayingTime(), -30), playInfoPO.getPlayingTime());
            asianBankerInfoPOLambdaQueryWrapper.orderByDesc(AsianBankerInfoPO::getCreateTime);
            List<AsianBankerInfoPO> asianBankerInfoPOS = asianBankerInfoMapper.selectList(asianBankerInfoPOLambdaQueryWrapper);
            if (asianBankerInfoPOS != null && asianBankerInfoPOS.size() > 0) {
                AsianBankerInfoPO asianBankerInfoPO = asianBankerInfoPOS.get(0);
                String handicapName = asianBankerInfoPO.getHandicapName();
//                                          乱七八糟的字先去掉
                handicapName = handicapName.replaceAll("升", "").replaceAll("降", "").replaceAll(" ", "");
                if (handicapName.contains("受")) {
                    handicapName = handicapName.replaceAll("受", "");
                } else {
                    handicapName = "受" + handicapName;
                }
//                                                看好客队的时候，把亚盘颠倒一下，因为存的都是按主队来说的，如果看好客队，比如主队是+，那么客队要变成减来计算
                if (handicapName.contains("/")) {
                    String[] asianSplit = handicapName.split("/");
                    String abc = EnumCommon.asianMap.get(asianSplit[0]) + "/" + EnumCommon.asianMap.get(asianSplit[1]);
                    if ("-".equals(abc.substring(0, 1))) {
                        if (playInfoPO.getHomeScore() < playInfoPO.getVisitScore()) {
                            if ("平手".equals(asianSplit[0]) && "半球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("0");
                            } else if ("半球".equals(asianSplit[0]) && "一球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("0");
                            } else if ("一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("1");
                        }
                    } else {
//                                            加球
                        if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
//                                                +0/0.5
                            if ("受平手".equals(asianSplit[0]) && "半球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受半球".equals(asianSplit[0]) && "一球".equals(asianSplit[1])) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("0");
                        }
                    }
                } else {
                    String abc = EnumCommon.asianMap.get(handicapName);
                    if (abc.contains("-")) {
                        if (playInfoPO.getHomeScore() <= playInfoPO.getVisitScore()) {
//                                                -0
                            if ("平手".equals(handicapName)) {
                                predictAccuracyPO.setAsianResultType("0");
                            } else if ("半球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() > playInfoPO.getHomeScore()) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("一球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 1) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("两球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("三球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("四球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            } else if ("五球半".equals(handicapName)) {
                                if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("0");
                                } else {
                                    predictAccuracyPO.setAsianResultType("1");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("1");
                        }
                    } else {
                        if (playInfoPO.getHomeScore() >= playInfoPO.getVisitScore()) {
//                                                +0
                            if ("受平手".equals(handicapName)) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受半球".equals(handicapName)) {
                                predictAccuracyPO.setAsianResultType("1");
                            } else if ("受一球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受两球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受三球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受四球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            } else if ("受五球半".equals(handicapName)) {
                                if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
                                    predictAccuracyPO.setAsianResultType("1");
                                } else {
                                    predictAccuracyPO.setAsianResultType("0");
                                }
                            }
                        } else {
                            predictAccuracyPO.setAsianResultType("0");
                        }
                    }
                }
            }
            predictAccuracyMapper.insert(predictAccuracyPO);
        }
    }


//    todo:以下是之前用来测欧盘准确率的代码，删了可惜，先放这吧。
//                if (StringUtils.isNotBlank(playInfoPO.getPredictResultEurope()) && playInfoPO.getPredictResultEurope().contains("赔率下降")) {
//                    String[] split = playInfoPO.getPredictResultEurope().split(",");
//                    if (split.length > 2) {
//                        sumCount++;
//                        String substring1 = split[0].substring(split[0].indexOf("主队赔率下降=") + 7);
//                        BigDecimal bigDecimal1 = new BigDecimal(substring1.trim());
//
//                        String substring2 = split[1].substring(split[1].indexOf("平局赔率下降=") + 7);
//                        BigDecimal bigDecimal2 = new BigDecimal(substring2.trim());
//
//                        String substring3 = split[2].substring(split[2].indexOf("客队赔率下降=") + 7);
//                        BigDecimal bigDecimal3 = new BigDecimal(substring3.trim());
//
//                        if (bigDecimal1.compareTo(bigDecimal3) > 0) {
//                            if (visitScore >= homeScore) {
//                                LambdaQueryWrapper<EuropeBankerInfoPO> europeBankerInfoPOLambdaQueryWrapper2 = new LambdaQueryWrapper<>();
//                                europeBankerInfoPOLambdaQueryWrapper2.eq(EuropeBankerInfoPO::getPlayInfoId, playInfoPO.getId());
//                                europeBankerInfoPOLambdaQueryWrapper2.eq(EuropeBankerInfoPO::getStartNowHandicapFlag, "1");//即盘
//                                europeBankerInfoPOLambdaQueryWrapper2.orderByDesc(EuropeBankerInfoPO::getCreateTime);
//                                List<EuropeBankerInfoPO> europeBankerInfoPOS = europeBankerInfoMapper.selectList(europeBankerInfoPOLambdaQueryWrapper2);
//                                BigDecimal winHandicap = europeBankerInfoPOS.get(0).getHomeWinHandicap();
//                                if (winHandicap.compareTo(new BigDecimal("2.00")) >= 0) {
//                                    winCount++;
//                                }
//                            }
//                        } else if (bigDecimal1.compareTo(bigDecimal3) < 0) {
//                            if (homeScore >= visitScore) {
//                                LambdaQueryWrapper<EuropeBankerInfoPO> europeBankerInfoPOLambdaQueryWrapper2 = new LambdaQueryWrapper<>();
//                                europeBankerInfoPOLambdaQueryWrapper2.eq(EuropeBankerInfoPO::getPlayInfoId, playInfoPO.getId());
//                                europeBankerInfoPOLambdaQueryWrapper2.eq(EuropeBankerInfoPO::getStartNowHandicapFlag, "1");//即盘
//                                europeBankerInfoPOLambdaQueryWrapper2.orderByDesc(EuropeBankerInfoPO::getCreateTime);
//                                List<EuropeBankerInfoPO> europeBankerInfoPOS = europeBankerInfoMapper.selectList(europeBankerInfoPOLambdaQueryWrapper2);
//                                BigDecimal loseHandicap = europeBankerInfoPOS.get(0).getHomeLoseHandicap();
//                                if (loseHandicap.compareTo(new BigDecimal("2.00")) >= 0) {
//                                    winCount++;
//                                }
//                            }
//                        }
//                        if (homeScore == visitScore) {
//                            LambdaQueryWrapper<EuropeBankerInfoPO> europeBankerInfoPOLambdaQueryWrapper2 = new LambdaQueryWrapper<>();
//                            europeBankerInfoPOLambdaQueryWrapper2.eq(EuropeBankerInfoPO::getPlayInfoId, playInfoPO.getId());
//                            europeBankerInfoPOLambdaQueryWrapper2.eq(EuropeBankerInfoPO::getStartNowHandicapFlag, "1");//即盘
//                            europeBankerInfoPOLambdaQueryWrapper2.orderByDesc(EuropeBankerInfoPO::getCreateTime);
//                            List<EuropeBankerInfoPO> europeBankerInfoPOS = europeBankerInfoMapper.selectList(europeBankerInfoPOLambdaQueryWrapper2);
//                            BigDecimal drawHandicap = europeBankerInfoPOS.get(0).getHomeDrawHandicap();
//                            if (drawHandicap.compareTo(new BigDecimal("3.2")) <= 0) {
//                                winCount++;
//                            }
//                        }
//                    }
//                }

//    todo:以下是之前用来测亚盘准确率的代码，删了可惜，先放这吧。
//     if ("看好主队亚盘".equals(predictResultAsian)) {
//                        sumCount++;
//                        if (handicapName.contains("/")) {
////                            包含/说明是+0/0.5这种盘
//                            String[] asianSplit = handicapName.split("/");
//                            String abc = EnumCommon.asianMap.get(asianSplit[0]) + "/" + EnumCommon.asianMap.get(asianSplit[1]);
////                                        为什么这么写，因为受球的时候，/后面的字不写受，所以容易误判断为减，其实按前面的走，就是+球
////                                                区分为主队减球还是加球，客队减球还是加球
//                            if ("-".equals(abc.substring(0, 1))) {
////                                            减球并且是减0.25及以上必须赢一个才算红单,还要看具体盘口
//                                if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
////                                                -0/0.5
//                                    if ("平手".equals(asianSplit[0]) && "半球".equals(asianSplit[1])) {
//                                        winCount++;
//                                        i++;
//                                    } else if ("半球".equals(asianSplit[0]) && "一球".equals(asianSplit[1])) {
//                                        winCount++;
//                                    } else if ("一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
////predictAccuracyPO.setAsianResultType("1");
//                                        }
//                                    } else if ("球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    }
//                                } else {
//
//                                }
//                            } else {
////                                            加球
//                                if (playInfoPO.getHomeScore() < playInfoPO.getVisitScore()) {
////                                                +0/0.5
//                                    if ("受平手".equals(asianSplit[0]) && "半球".equals(asianSplit[1])) {
//
//                                    } else if ("受半球".equals(asianSplit[0]) && "一球".equals(asianSplit[1])) {
//
//                                    } else if ("受一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    }
//                                } else {
//                                    winCount++;
//                                    i++;
//                                }
//                            }
//                        } else {
////                                        不包含"/"盘,单独的亚盘
//                            String abc = EnumCommon.asianMap.get(handicapName);
//                            if (abc.contains("-")) {
//                                if (playInfoPO.getHomeScore() >= playInfoPO.getVisitScore()) {
////                                                -0
//                                    if ("平手".equals(handicapName)) {
//                                        winCount++;
//                                        i++;
//                                    } else if ("半球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("一球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 1) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    }
//                                } else {
//
//                                }
//                            } else {
//                                if (playInfoPO.getHomeScore() < playInfoPO.getVisitScore()) {
//                                    if ("受一球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    }
//                                } else {
//                                    winCount++;
//                                    i++;
//                                }
//                            }
//                        }
////                                insertPredictList.add(predictAccuracyPO);
//                    } else if ("看好客队亚盘".equals(predictResultAsian)) {
//                        sumCount++;
//                        if (handicapName.contains("受")) {
//                            handicapName = handicapName.replaceAll("受", "");
//                        } else {
//                            handicapName = "受" + handicapName;
//                        }
////                                                看好客队的时候，把亚盘颠倒一下，因为存的都是按主队来说的，如果看好客队，比如主队是+，那么客队要变成减来计算
//                        if (handicapName.contains("/")) {
//                            String[] asianSplit = handicapName.split("/");
//                            String abc = EnumCommon.asianMap.get(asianSplit[0]) + "/" + EnumCommon.asianMap.get(asianSplit[1]);
//                            if ("-".equals(abc.substring(0, 1))) {
//                                if (playInfoPO.getHomeScore() < playInfoPO.getVisitScore()) {
//                                    if ("平手".equals(asianSplit[0]) && "半球".equals(asianSplit[1])) {
//                                        winCount++;
//                                        i++;
//                                    } else if ("半球".equals(asianSplit[0]) && "一球".equals(asianSplit[1])) {
//                                        winCount++;
//                                        i++;
//                                    } else if ("一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    }
//                                } else {
//
//                                }
//                            } else {
////                                            加球
//                                if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
//                                    if ("受一球".equals(asianSplit[0]) && "球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受球半".equals(asianSplit[0]) && "两球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球".equals(asianSplit[0]) && "两球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球半".equals(asianSplit[0]) && "三球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球".equals(asianSplit[0]) && "三球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球半".equals(asianSplit[0]) && "四球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球".equals(asianSplit[0]) && "四球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球半".equals(asianSplit[0]) && "五球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球".equals(asianSplit[0]) && "五球半".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球半".equals(asianSplit[0]) && "六球".equals(asianSplit[1])) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    }
//                                } else {
//                                    winCount++;
//                                    i++;
//                                }
//                            }
//                        } else {
//                            String abc = EnumCommon.asianMap.get(handicapName);
//                            if (abc.contains("-")) {
//                                if (playInfoPO.getHomeScore() <= playInfoPO.getVisitScore()) {
////                                                -0
//                                    if ("平手".equals(handicapName)) {
//                                        winCount++;
//                                        i++;
//                                    } else if ("半球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() > playInfoPO.getHomeScore()) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("一球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 1) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 2) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("两球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 3) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("三球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 4) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("四球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 5) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("五球半".equals(handicapName)) {
//                                        if (playInfoPO.getVisitScore() - playInfoPO.getHomeScore() >= 6) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    }
//                                } else {
//
//                                }
//                            } else {
//                                if (playInfoPO.getHomeScore() > playInfoPO.getVisitScore()) {
////                                                +0
//                                    if ("受平手".equals(handicapName)) {
//                                        if (Objects.equals(playInfoPO.getHomeScore(), playInfoPO.getVisitScore())) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("受半球".equals(handicapName)) {
//                                        if (Objects.equals(playInfoPO.getHomeScore(), playInfoPO.getVisitScore())) {
//                                            winCount++;
//                                            i++;
//                                        } else {
//
//                                        }
//                                    } else if ("受一球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 2) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受两球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 3) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受三球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 4) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受四球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 5) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    } else if ("受五球半".equals(handicapName)) {
//                                        if (playInfoPO.getHomeScore() - playInfoPO.getVisitScore() >= 6) {
//
//                                        } else {
//                                            winCount++;
//                                            i++;
//                                        }
//                                    }
//                                } else {
//                                    winCount++;
//                                    i++;
//                                }
//                            }
//                        }
//                    }
}
